﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace Yun.Open
{
    public class ApiDetail
    {
        [XmlElement("id")]
        public int Id { get; set; }

        /// <summary>
        /// 详细介绍
        /// </summary>
        [XmlElement("explain")]
        public string Explain { get; set; }

        /// <summary>
        /// 方法名
        /// </summary>
        [XmlElement("method")]
        public string Method { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [XmlElement("description")]
        public string Description { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [XmlElement("create_time")]
        public string CreateTime { get; set; }


        /// <summary>
        /// 请求参数
        /// </summary>
        [XmlArray("request_parameters")]
        [XmlArrayItem("request_parameter")]
        public List<RequestParameter> RequestParameters { get; set; }


        /// <summary>
        /// 响应参数
        /// </summary>
        [XmlArray("response_parameters")]
        [XmlArrayItem("response_parameter")]
        public List<ResponseParameter> ResponseParameters { get; set; }
    }
}
